package access;

public class Request {
	public Request_Types myType;

	private final static String[] REQ_INFO = {
		"Login",
		"User:",
		"Pass:",
		"INVALID_CODE_1",
		"Logout",
		"SU",
		"INVALID_CODE_0"
	};
	
//	public Request() {
//		myReq = "None";
//		myType = Request_Types.NO_REQ;
//	}
//	
//	public Request(Request_Types thisType) {
//		set(thisType);
//	}
	
	public String getInfo() {
		if(myType.ordinal() < REQ_INFO.length && myType.ordinal() > 0)
			return REQ_INFO[myType.ordinal()];
		return REQ_INFO[REQ_INFO.length-1];
	}
	
	public String getInfo(Request_Types thisType) {
		return REQ_INFO[thisType.ordinal()];
	}
	
//	public void set(Request_Types thisType) {
//		myReq = REQ_INFO[thisType.ordinal()];
//		myType = thisType;
//	}
//	
//	public void setInfo(String Info) {
//		myInfo = Info;
//	}
}
